package com.xiumiing.uilibrary.rx;

/**
 * des:服务器请求异常
 * Created by xsf
 * on 2016.09.10:16
 */
public class ApiException extends Exception {
    public static String getMsg() {
        return msg;
    }

    private static String msg;
    private int code;

    public ApiException(String msg) {
        super(msg);
        ApiException.msg = msg;
    }

    public ApiException(String msg, int code) {
        super(msg);
        ApiException.msg = msg;
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
